import { Alova } from '@/utils/http/alova/index';

//获取table
export function getRole(params) {
  return Alova.Post('admin/role', params);
}

export function getRoleAll() {
  return Alova.Post('admin/role/all', {});
}

export function putRole(params) {
  return Alova.Put('admin/role', params);
}

export function patchRole(params) {
  return Alova.Patch('admin/role', params);
}

export function deleteRole(id) {
  return Alova.Delete('admin/role/' + id);
}
